how to integrate trigonometric functions